<template>
  <div class="it-body">
    <div>
      <flow-bingding-header ref="bindingHeader"></flow-bingding-header>
    </div>
    <div>
      <flow-bingding-body @clickSearchBinding="headerSearchBinding"></flow-bingding-body>
    </div>
  </div>
</template>

<script>
  import flowBingdingHeader from './flowBingding-child/flowBingdingHeader'
  import flowBingdingBody from './flowBingding-child/flowBingdingBody'

    export default {
      name: "flowBinding",
      components:{
        flowBingdingHeader,
        flowBingdingBody,
      },
      methods:{
        headerSearchBinding(){     //父组件方法，调用header中的searchUser方法。
          this.$refs.bindingHeader.searchBinding();
        },
      },
    }
</script>

<style scoped>
  .it-body{
    margin: 10px 10px;
    height: auto;
    width: auto;
    /*background-color: #d3dce6;*/
  }

</style>
